Skip to content

Add %%mprun and %%memit cell magics for IPython.#104

Merged
fabianp merged 1 commit intomasterfrom
unknown repository
Nov 2, 2015
Merged

Add %%mprun and %%memit cell magics for IPython.#104
fabianp merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Nov 1, 2015

No description provided.

@ghost ghost force-pushed the cell_magics branch from e13b9ba to 8ad9999 Compare November 1, 2015 01:20
@ghost ghost mentioned this pull request Nov 1, 2015
@fabianp
Copy link
Copy Markdown
Collaborator

fabianp commented Nov 2, 2015

Thanks!

Looks good to me, merging

fabianp added a commit that referenced this pull request Nov 2, 2015
Add %%mprun and %%memit cell magics for IPython.
@fabianp fabianp merged commit 219e9b9 into pythonprofilers:master Nov 2, 2015
Comment thread memory_profiler.py
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@korzeniewskipl shouldn't this be MemoryProfilerMagics().mprun.__func__ (note the parenthesis) or just MemoryProfilerMagics.mprun? Otherwise I'm having exceptions under Python3 ...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mea culpa. I didn't test these lines under Python3. Yes, should be MemoryProfilerMagics().

@ghost ghost deleted the cell_magics branch November 2, 2015 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant